package com.base2.webshop.client;

import com.base2.webshop.client.mvp.WebShopGinjector;
import com.base2.webshop.client.resources.WsResources;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.gwtplatform.mvp.client.DelayedBindRegistry;

public class WebShop implements EntryPoint {

	public final WebShopGinjector ginjector = GWT
			.create(WebShopGinjector.class);

	public void onModuleLoad() {
		WsResources.INSTANCE.loginCss().ensureInjected();
		WsResources.INSTANCE.webshopCss().ensureInjected();
		
		ginjector.getRequestFactory().initialize(ginjector.getEventBus());
		DelayedBindRegistry.bind(ginjector);
		ginjector.getPlaceManager().revealCurrentPlace();
	}

}
